<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/edit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden"  id='hidden'  name='id' value="<{$vo.id}>"/>
        <eq name="vo['id']" value=''>
            <input type="hidden" name='assign_user_id' value="<{$Think.session.authId}>"/>
        </eq>
        <div class="pageFormContent" layoutH="58">
            <eq name='_sign' value='1'>
                <div class="unit">
                    <label>问题：</label>
                    <input type="text" name="question" size="45"  value="<{$vo.question}>" class='required' />
                </div>
                <div class="unit">
                    <label>问题英文描述：</label>
                    <input type="text" name="en_question" size="45"  value="<{$vo.en_question}>" class='required' />
                </div>
            <else/>
                <input type="hidden" name='db' value='AnswerList'/>
                <input type="hidden" name="image" value="<{$vo.image}>" id="image"/>
                <div class="unit">
                    <label>问题：</label>
                    <select name="exa_id" style="width: 220px;">
                        <foreach name="qList" item="qList">
                            <option value="<{$qList.id}>" <if condition="$qList['id'] eq $vo['exa_id']">selected</if>><{$qList.question}></option>
                        </foreach>
                    </select>
                </div>
                <div class="unit">
                    <label>备选答案：</label>
                    <input type="text" name="answer" size="45"  value="<{$vo.answer}>" class='required' />
                </div>
                <div class="unit">
                    <label>备选答案英文描述：</label>
                    <input type="text" name="en_answer" size="45"  value="<{$vo.en_answer}>" class='required' />
                </div> 
                <div id="preview1" href="">
                    <img src="<{$Think.const.PUBLIC_URL}>Upload/<{$vo.image}>" id='topPhpto'/>               
                </div>
                <div class="unit">
                    <label>图片：</label>  
                    <input id="testFileInput2" type="file" name="images"                                        
                        uploaderOption="{
                            swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
                            uploader:'__MODULE__/Common/upImg',
                            formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:9},
                            buttonText:'请选择文件',
                            fileSizeLimit:'20000KB',
                            fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
                            fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
                            auto:true,
                            onUploadSuccess:function(file,data,respore){
                                $('#topPhpto').attr('src','<{$Think.const.PUBLIC_URL}>'+'Upload/'+data);
                                $('#image').val(data);
                            }
                        }"
                    />
                </div>
                <div class="unit">
                    <label>排序：</label>
                    <input type="text" name="sort_" size="15"  value="<{$vo.sort_}>" class='' />
                </div>
            </eq>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
